import React, { Component } from 'react';

import { Switch, Route } from 'react-router-dom'
// 导入路由
import Detail from '../views/Detail'

import Footer from '../components/Footer';
import Login from '@/views/login'
import Fav from '@/views/fav'

class index extends Component {
    render() {
        return (
            <Switch>
                <Route exact path='/' component={Footer} />
                <Route path='/detail/:id' component={Detail} />
                <Route path='/login' component={Login} />
                <Route path='/fav' component={Fav} />
            </Switch>
        );
    }
}

export default index;
